var status = -1;
var selectionLog = [];

function action(d, h, j) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = j;
    var c = -1;
    if (status <= c++) {
        cm.dispose()
    } else {
        if (status === c++) {
            var g = ["mirrorD_325_0_", "mirrorD_325_1_", "mirrorD_325_2_", "mirrorD_325_3_"];
            var a = [0, 0, 0, 0];
            var b = ["为强化埃德尔斯坦的治安所安排了巡逻机器人和警卫机器人的路灯街头。", "因山崩危险需要小心通过的岩山。", "只有在埃德尔斯坦才能挖掘到神秘镥矿石的矿山深处。", "一般人禁止入内的矿山警备区域。"];
            var f = new Array();
            var e = 41801 + parseInt((cm.getMapId() - 320000000) / 1000000) * 4 - 4;
            for (var c = 0; c < b.length; c++) {
                if (cm.getNumberFromQuestInfo(e + c, "count") > 0) {
                    f.push(b[c] + "\n\n通关次数:" + cm.getNumberFromQuestInfo(e + c, "count") + "\r\n最短纪录:" + cm.getNumberFromQuestInfo(e + c, "min") + "分 " + cm.getNumberFromQuestInfo(e + c, "sec") + "秒")
                } else {
                    f.push(b[c] + "\n\n通关次数:- \r\n最短纪录:-分 -秒")
                }
            }
            if (cm.isQuestActive(40401)) {
                g.push("map325090030");
                a.push(0);
                f.push("和瓦尼约定见面的路灯街头。")
            }
            if (cm.isQuestActive(40943)) {
                g.push("map325090310");
                a.push(0);
                f.push("阿尔杉走过来的岩石道路。")
            }
            cm.setMirrorDungeonInfo(g, a, f);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};